import { CommonModule }   from '@angular/common';
import { FormsModule }    from '@angular/forms';


import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { PaginationModule } from 'ng2-bootstrap';

import { postRoutes } from './post.routes';
import { PostComponent } from './postlist/post.component'
import { PostService } from './postlist/services/post.list.service';
import { BooleanPipe } from '../utils/boolean-pipe';
import { TranslatePipe } from '../utils/translate-pipe';
import { PostDetailMainComponent } from './post-detail-main/post-detail-main.component';
import { PostDetailComponent } from './post-detail/post-detail.component';
import { PostDetailService } from './post-detail/services/post-detail.service';
import { WritePostComponent } from './write-post/write-post.component';



@NgModule({
    imports:[
        FormsModule,
        CommonModule,
        RouterModule,
        PaginationModule.forRoot(),
        RouterModule.forChild(postRoutes)
    ],
    declarations:[
        PostComponent,
        BooleanPipe,
        TranslatePipe,
        PostDetailMainComponent,
        PostDetailComponent,
        WritePostComponent
    ],
    providers:[
        PostDetailService,
        PostService
    ]
})
export class PostModule {}